﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using test1011.Models;
using Encoding = test1011.Models.Encoding;

namespace test1011
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }
        Encoding encoding = new Encoding();
        private void textBox1_TextChanged(object sender, EventArgs e)
        { 
            
            string Plaintext = txtPlain.Text;
            encoding.Plaintext = Plaintext;
        }

        private void txtKey_TextChanged(object sender, EventArgs e)
        {
            string Keytext = txtKey.Text;
            encoding.Key = Keytext;
        }

        

        private void btnEncode_Click(object sender, EventArgs e)
        {
           
            encoding.Encode();
             this.lblCypher.Text = encoding.Cypher;
        }
        private void lblCypher_Click(object sender, EventArgs e)
        {
           
        }

        private void frmMain_Load(object sender, EventArgs e)
        {

        }
    }
}
